package com.yhgarden.bbs.mapper.business;

import com.yhgarden.bbs.entity.business.UserGroup;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author Laijiaxiang
* @since 2019-09-23
*/
public interface UserGroupMapper  {

    public int create(UserGroup userGroup);

    public int update(UserGroup userGroup);

    public UserGroup getById(@Param("id") String id);

    public UserGroup getByIdForList(@Param("id") String id);

    public UserGroup getByIdMoreDetail(@Param("id") String id);

    public int queryCount(@Param("example") UserGroup userGroup);

    public List<UserGroup> query(@Param("example") UserGroup userGroup,
                                 @Param("order") String order,
                                 @Param("field") String field);

    public List<UserGroup> queryForList(@Param("example") UserGroup userGroup,
                                        @Param("order") String order,
                                        @Param("field") String field);

    public List<UserGroup> queryMoreDetail(@Param("example") UserGroup userGroup,
                                           @Param("order") String order,
                                           @Param("field") String field);

    public int delete(@Param("id") String id);

    public int deleteByExample(@Param("example") UserGroup userGroup);

    public int batchDelete(@Param("ids") List<String> ids);

}

